package com.qiang.util;

import com.qiang.service.Strategy;

/**
 * @package: com.qiang.util
 * @title: Context
 * @projectName: burning
 * @description: //TODO
 * @author zhuhongqiang3
 * @date:  2020-04-29 18:32
 * @version: V1.0
 * @retrun com.qiang.util.burning
 */
public class Context {
    private Strategy strategy;

    public Context(Strategy strategy){
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.doOperation(num1, num2);
    }
}
